Skip to content

Conversation

@radimvaculik
Copy link
Member

@radimvaculik radimvaculik commented Nov 22, 2025

Summary by CodeRabbit

  • Tests
    • Added PHP 8.5 test job to CI, running before the existing PHP 8.4 step.
  • Chores
    • Updated CI tooling runs to use PHP 8.5.
    • Updated composer branch alias for dev-master to 7.2.x-dev.
  • Documentation
    • Updated versions table to add a stable row and reflect the new dev branch alias.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Nov 22, 2025

Walkthrough

Adds a new GitHub Actions job test85 that runs the shared nette-tester-mysql workflow with PHP 8.5 and tests database, updates several workflows to use PHP 8.5, bumps extra.branch-alias in composer.json from 7.1.x-dev to 7.2.x-dev, and updates the Versions table in README.md.

Changes

Cohort / File(s) Summary
GitHub Actions — tests job added
.github/workflows/tests.yml
Inserts a new test85 job before test84 that uses contributte/.github/.../nette-tester-mysql.yml@master with php: "8.5" and database: tests.
GitHub Actions — PHP version bumps
.github/workflows/codesniffer.yml, ​.github/workflows/coverage.yml, ​.github/workflows/phpstan.yml
Updates the with: php value from 8.4 to 8.5 in each workflow step. No other control-flow changes.
Composer manifest
composer.json
Changes extra.branch-alias for dev-master from 7.1.x-dev to 7.2.x-dev.
Documentation
README.md
Updates Versions table: dev row now ^7.2.x; adds/adjusts stable row to ^7.1.0 (table entries updated).

Sequence Diagram(s)

sequenceDiagram
    participant GH as GitHub Actions
    participant Shared as contributte/.github/.../nette-tester-mysql.yml
    note over GH,Shared `#D6F5D6`: New test85 job invokes shared workflow with PHP 8.5
    GH->>Shared: dispatch (php: "8.5", database: "tests")
    alt tests pass
        Shared-->>GH: success
    else tests fail
        Shared-->>GH: failure
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Check insertion point and ordering of the new test85 job in .github/workflows/tests.yml.
  • Verify PHP version changes across workflows and ensure CI matrix/compatibility as intended.
  • Confirm composer.json branch-alias bump matches release/versioning policy and update README changes validate expected versions.

Poem

🐰 I hopped through YAML, neat and spry,
Brought PHP 8.5 to try.
A branch alias shifted, small and bright,
I munch the changes, tuck them tight. 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'PHP 8.5 support' directly aligns with the main changes: adding PHP 8.5 testing jobs, updating workflows to use PHP 8.5, and bumping the branch alias version.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/php85

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0a16220 and 3d0792e.

📒 Files selected for processing (2)
  • .github/workflows/tests.yml (1 hunks)
  • composer.json (1 hunks)
🔇 Additional comments (1)
.github/workflows/tests.yml (1)

14-19: Verify external workflow supports PHP 8.5 nightly builds.

PHP 8.5 is available on GitHub Actions as a nightly/development version via the shivammathur/setup-php action. The code itself (lines 14-19) is correct and consistent with existing test jobs (test84, test83, etc.).

However, the actual PHP 8.5 support depends on the external shared workflow contributte/.github/.github/workflows/nette-tester-mysql.yml@master. Since this workflow is in an external repository, verify that it:

  • Uses a recent version of shivammathur/setup-php that supports PHP 8.5 nightly
  • Properly handles the php: "8.5" input parameter

The workflow is proven to work with PHP 8.4, suggesting compatibility, but explicit verification of PHP 8.5 nightly support is recommended before merging.

@radimvaculik
Copy link
Member Author

Failing as LeanMapper has PHP 7.4-8.4

Tharos/LeanMapper#171

@radimvaculik radimvaculik changed the title Enable Nette Tester for PHP 8.5 PHP 8.5 support Nov 23, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (2)
.github/workflows/phpstan.yml (1)

18-18: Dependency compatibility concern: LeanMapper does not support PHP 8.5.

This workflow will fail to install dependencies on PHP 8.5 due to LeanMapper incompatibility (referenced in the PR comments and LeanMapper issue #171).

.github/workflows/coverage.yml (1)

18-18: Critical blocker: PHP 8.5 test execution is not possible with current dependencies.

The coverage workflow will fail during test execution because LeanMapper—a transitive dependency of the project—does not support PHP 8.5 (per LeanMapper issue #171 cited in the PR comments). This blocks the PR from merging.

To proceed:

  • Coordinate with the LeanMapper maintainers for PHP 8.5 support, or
  • Replace or upgrade LeanMapper if a compatible version or alternative exists, or
  • Defer PHP 8.5 support until the dependency is compatible.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3d0792e and 7c55aeb.

📒 Files selected for processing (6)
  • .github/workflows/codesniffer.yml (1 hunks)
  • .github/workflows/coverage.yml (1 hunks)
  • .github/workflows/phpstan.yml (1 hunks)
  • .github/workflows/tests.yml (1 hunks)
  • README.md (1 hunks)
  • composer.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • composer.json
  • .github/workflows/tests.yml

@radimvaculik
Copy link
Member Author

@f3l1x WDYT?

@f3l1x
Copy link
Member

f3l1x commented Nov 27, 2025

LGTM, let's do it.

@radimvaculik
Copy link
Member Author

@f3l1x Can't merge my own PR 🙈

@f3l1x f3l1x self-requested a review November 27, 2025 10:59
@f3l1x f3l1x merged commit 5ec5601 into master Nov 27, 2025
15 of 17 checks passed
@radimvaculik radimvaculik deleted the feature/php85 branch November 27, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants